from django.conf.urls import url
from django.contrib import admin
from . import views
from rest_framework_jwt.views import obtain_jwt_token


urlpatterns = [
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMS_CODEView.as_view()),
    url(r'^usernames/(?P<username>\w+)/count$', views.UserNameView.as_view()),
    url(r'^mobiles/(?P<mobile>\d+)/count$', views.MobileView.as_view()),
    url(r'^users/$', views.UsersView.as_view()),
    url(r'^authorizations/$', obtain_jwt_token),


]
